package com.vito.framework.system.menu.service;

import com.vito.framework.base.exception.CommonException;
import com.vito.framework.base.service.BaseService;
import com.vito.framework.system.menu.model.MenuBean;
import com.vito.framework.system.role.model.RoleBean;

import java.util.List;
import java.util.Map;

public interface MenuService extends BaseService<MenuBean> {

    MenuBean getMenuById(String menuId) throws CommonException;

    List<MenuBean> getMenuList(Map<String, Object> paramMap) throws CommonException;

    void addMenu(MenuBean menuBean) throws CommonException;

    List<RoleBean> getOrgResultList(String menuId) throws CommonException;

    List<MenuBean> getPmenuList(Map<String, Object> map) throws CommonException;

    void editMenu(MenuBean menuBean) throws CommonException;

    void deleteMenu(Map<String, Object> map) throws CommonException;

    void orgMenuSave(String orgMenuId, String[] orgIds) throws CommonException;
}
